$def with (devs,units,locations)

<script>
function pula()
{
	var dev = $$('#measure_form [name=dev]').val();
	var unit = $$('#measure_form [name=unit]').val();
	var location = $$('#measure_form [name=location]').val();
	
	$$.get("/device_info?byid="+dev, function(data) {
			$$("#dev_info").html("</br>" + data + "</br>")
		});
}
</script>

<form action="javascript:pula()" method="get" id="measure_form">
From:
<select name="dev" id="dev">
<option value="*">Any</option>
$for x in devs:
	<option value="$x.id">$x.name</option>
</select>

Unit:
<select name="unit">
<option value="*">Any</option>
$for x in units:
	<option value="$x.id">$x.name</option>
</select>

Location:
<select name="location">
<option value="*">Any</option>
$for x in locations:
	<option value="$x.id">$x.name</option>
</select>

<input type="submit" value="Filter">
</form>
<br>
<div style="width:100%" id="dev_info"></div>